﻿namespace Micro.Extensions.Bridge
{
    /// <summary>
    /// Consul 配置
    /// </summary>
    public class ConsulConfig
    {
        /// <summary>
        /// 健康检查周期 默认5s
        /// </summary>
        public int HealthCheckInterval { get; set; } = 5;

        /// <summary>
        /// Consul地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 标记
        /// </summary>
        public string[] Tags { get; set; }

        /// <summary>
        /// 拉取服务周期 默认5s
        /// </summary>
        public int PollingInterval { get; set; } = 5000;
        /// <summary>
        /// 是否允许本地服务
        /// </summary>
        public bool EnableLocalService { get;  set; }
    }
}
